package com.shsh.safemanage.model;

public class Department1 {
	private Long id;
	private int departmentType;
	private String departmentName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public int getDepartmentType() {
		return departmentType;
	}

	public void setDepartmentType(int departmentType) {
		this.departmentType = departmentType;
	}

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}
	
	public int hashCode() {
		return id.intValue();
	}
	
	public boolean equals(Object o) {
		if (o == null) {
			return false;
		}
		
		if (!(o instanceof Department1)) {
			return false;
		}
		
		Department1 theDepart = (Department1) o;
		
		return theDepart.getId().equals(this.id);
	}
}
